package com.gmrz.uaf.servlet.v1.request;

import com.gmrz.uaf.protocol.v1.schema.DeviceDetails;
import com.gmrz.util.UUIDGenerator;
import com.google.gson.annotations.Expose;

import java.util.List;
import java.util.UUID;

/**
 * Created by chentaikun on 16/12/19.
 */
public class DeviceSupportContext implements RequestContext{

    @Expose
    private String transNo;

    @Expose
    private List<String> authType;

    @Expose
    private String appID;

    @Expose
    private List<String> transType;

    @Expose
    private DeviceDetails devices;
    @Expose
    private boolean isBase64 = false;

    public String getTransNo() {
        return transNo;
    }

    public void setTransNo(String transNo) {
        this.transNo = transNo;
    }

    public List<String> getAuthType() {
        return authType;
    }

    public void setAuthType(List<String> authType) {
        this.authType = authType;
    }

    public String getAppID() {
        return appID;
    }

    public void setAppID(String appID) {
        this.appID = appID;
    }

    @Override
    public String getUserName() {
        return UUIDGenerator.generateID();
    }

    public void setTransType(List<String> transType) {
        this.transType = transType;
    }

    public List<String> getTransType() {

        return transType;
    }

    public DeviceDetails getDevices() {
        return devices;
    }

    public void setDevices(DeviceDetails devices) {
        this.devices = devices;
    }

    public boolean isBase64() {
        return isBase64;
    }

    public void setBase64(boolean base64) {
        isBase64 = base64;
    }
}
